<user>
	<id>{$user.id}</id>
	<nickname>{$user.nickName}</nickname>
	<firstname>{$user.firstName}</firstname>
	<lastname>{$user.lastName}</lastname>
	<email>{$user.email}</email>
	<group_name>{$user.group_name}</group_name>
{assign var=total value=0}
{foreach from=$userPoints item=point}{*start getting points*}
{assign var=pointTypeName value=""}
{foreach from=$pointTypes item=pointType}{*start getting pointtypes*}
{if $point->getPointTypeId() eq $pointType->getPointTypeId()}
{assign var=pointTypeName value=$pointType->getTypeName()}
{/if}
{/foreach}{*end getting pointtypes*}
{if $pointTypeName eq "intellect" || $pointTypeName eq "strength" || $pointTypeName eq "social"}
{assign var=total value=$total+$point->getPoint()}
	<progress_{$pointTypeName}>{$point->getPoint()}</progress_{$pointTypeName}>
	<level_{$pointTypeName}>0</level_{$pointTypeName}>
{else}
	<progress_{$pointTypeName}>0</progress_{$pointTypeName}>
	<level_{$pointTypeName}>0</level_{$pointTypeName}>
{/if}
{/foreach}{*end getting points*}
	<progress_total>{$total}</progress_total> 
	<level_total>0</level_total> 
</user>